import com.LCQ.crm.utils.SqlSessionUtil;
import com.LCQ.crm.workbench.dao.ActivityDao;
import com.LCQ.crm.workbench.domain.Activity;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class test06 {
    public static void main(String[] args) {
        ActivityDao activityDao = SqlSessionUtil.getSqlSession().getMapper(ActivityDao.class);
        Activity activity = new Activity();
        activity.setOwner("张");
        Map map = new HashMap();
        map.put("index",0);
        map.put("pageSize",2);
        map.put("owner","张");
        map.put("name","济南");
        map.put("startDate","");
        map.put("endDate","");
        List<Activity> pageList = activityDao.getPageListByCondition(map);
        int count = activityDao.getPageListCountByCondition(map);
        System.out.println(pageList);
        System.out.println(count);
    }
}
